package com.itheima.thiskeyword;

public class Student {
    int num = 20;
    public void show(){
        int num = 10;
        System.out.println(num);
        System.out.println(this.num);
    }
    public void show2(){
        System.out.println("show2");
        show3();
        this.show3();
    }
    public void show3(){
        System.out.println("show3");
    }

    public Student() {
       // this(19);
        System.out.println("空参");
    }

    public Student(int num) {
        this();
        this.num = num;
        System.out.println("有参");
    }
}
